package com.example.logging;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.util.logging.Logger;

public class JulMain {

    public static void main(String[] args) {
        jul();
        jcl();
    }

    /**
     * jdk 推荐的日志库 ：jul
     */
    private static void jul(){
        Logger logger = Logger.getLogger(JulMain.class.getName());
        logger.info("JDK官方日志库:JUL");
    }

    private static void jcl(){
       Log log = LogFactory.getLog(JulMain.class);
       log.info("JCL门面");
    }

}
